Distinct(TSource) Method (ParallelQuery(TSource))

Task Parallel System.Threading

Returns distinct elements from a parallel sequence by using the default equality comparer to compare values.

Namespace:  System.Linq
Assembly:  System.Threading (in System.Threading.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Distinct(Of TSource) ( _
	source As ParallelQuery(Of TSource) _
) As ParallelQuery(Of TSource)
C#
public static ParallelQuery<TSource> Distinct<TSource>(
	ParallelQuery<TSource> source
)

Parameters

source
Type: System.Linq..::.ParallelQuery<(Of <(TSource>)>)
The sequence to remove duplicate elements from.

Type Parameters

TSource
The type of the elements of source.

Return Value

A sequence that contains distinct elements from the source sequence.

Exceptions

ExceptionCondition
System..::.ArgumentNullException source is a null reference (Nothing in Visual Basic).

See Also